﻿


using System;
using System.Text;
using System.Collections;
using System.Xml;
using System.Data;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Resources;
using System.Reflection;
using System.Globalization;
using System.Threading;

using Telerik.WebControls;
using UFSoft.UBF.UI.WebControls;
using UFSoft.UBF.UI.WebControls.InterActionComponenet;
using UFSoft.UBF.Util.Log;
using UFSoft.UBF.Util.Context;

//using MagicAjax.UI.Controls;
using UFSoft.UBF.Report.UI.ReportView.Web;
using UFSoft.UBF.UI.WebControlAdapter;
using UFSoft.UBF.UI.FormProcess;
using UFSoft.UBF.UI.IView;
using UFSoft.UBF.UI.Engine;
using UFSoft.UBF.UI.Engine.Builder;
using UFSoft.UBF.UI.Engine.Authorization;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.ActionProcess;
using UFSoft.UBF.UI.ControlModel;
using UFSoft.UBF.UI.Controls;
using UFSoft.UBF.UI.WebControls.Association;
using UFSoft.UBF.UI.WebControls.ClientCallBack;
using System.Web.UI;
using UFSoft.UBF.UI.UIFormPersonalization;
using System.Collections.Specialized;


/***********************************************************************************************
 * Form ID:44106060-c552-4f16-a611-a3107c682079 
 * Form Name:FindPOShipLineUIForm
 * UIFactory Auto Generator
 ***********************************************************************************************/
namespace UFIDA.U9.Cust.U9Demo.DeliverUI
{
	[FormRegister("UFIDA.U9.Cust.U9Demo.DeliverUI","UFIDA.U9.Cust.U9Demo.DeliverUI.FindPOShipLineUIFormWebPart", "UFIDA.U9.Cust.U9Demo.DeliverUI.WebPart", "44106060-c552-4f16-a611-a3107c682079","WebPart", "False", 872, 448)] 
	///insert into aspnet_Parts (SysVersion, Path, ClassName, [Assembly], FormId) values (0, 'UFIDA.U9.Cust.U9Demo.DeliverUI', 'UFIDA.U9.Cust.U9Demo.DeliverUI.FindPOShipLineUIFormWebPart', 'UFIDA.U9.Cust.U9Demo.DeliverUI.WebPart', '44106060-c552-4f16-a611-a3107c682079')
	///<siteMapNode url="~/erp/simple.aspx?lnk=44106060-c552-4f16-a611-a3107c682079" title="FindPOShipLineUIForm"/>
    public partial class FindPOShipLineUIFormWebPart : UFSoft.UBF.UI.FormProcess.BaseWebForm
    {
		#region Page Controller/Code Behind
        private static readonly ILogger logger = LoggerManager.GetLogger(typeof(FindPOShipLineUIFormWebPart));
        private string assemblyName = System.Reflection.Assembly.GetExecutingAssembly().FullName;
        //private string displayNamePostfix = "displayName";

		#region 强类型化基类属性.
		public new FindPOShipLineUIModelAction Action
		{
			get { return (FindPOShipLineUIModelAction)base.Action; }
			set { base.Action = value; }
		}
		FindPOShipLineUIModelModel _uimodel=null;
		public new FindPOShipLineUIModelModel Model
		{
			get 
			{
			     if(_uimodel == null){
			          _uimodel = new FindPOShipLineUIModelModel();
			     }
			     return _uimodel; 
			}
			set { _uimodel = value; }
		}
        protected override IUIModel UIModel{
            get{
                return this.Model;
            }
            set{
                this.Model = value as FindPOShipLineUIModelModel;
            }
        }
		#endregion 
		public FormAdjust adjust;
        #region variable declaration
        IUFCard Card0;
        IUFDataGrid DataGrid0;
        IUFLabel lblID65;
        IUFFldNumberControl ID65;
        IUFLabel lblSysVersion74;
        IUFFldNumberControl SysVersion74;
        IUFLabel lblPO74;
        IUFFldReference PO74;
        IUFLabel lblSupplier194;
        IUFFldReference Supplier194;
        IUFLabel lblItem151;
        IUFFldReference Item151;
        IUFButton OnQuery358;
        IUFLabel lblPODocNo125;
        IUFFldTextBox PODocNo125;
        IUFLabel lblSupplierCode116;
        IUFFldTextBox SupplierCode116;
        IUFLabel lblItemCode211;
        IUFFldTextBox ItemCode211;
        IUFCard Card1;
        IUFButton OnOK208;
        IUFButton OnCancel201;
        IUFLabel Label212;
        IUFFldTextBox TextBox213;
		UpdatePanel updatePanel;
		HiddenField wpFindID;
		IUFContainer topLevelPanel;     
        IUFSeparator SeparatorInFavorites;
        IUFButton BtnDefaultValues;
        #endregion
        
        #region constructor
        public FindPOShipLineUIFormWebPart()
        {
            FormID = "44106060-c552-4f16-a611-a3107c682079";
            IsAutoSize = bool.Parse("True");
        }
        #endregion


	
            
	//获取档案版型结果: 

        #region eventBind and databind
        private void EventBind()
        {
			//事件绑定模板
				//Button控件事件
			this.OnQuery358.Click += new EventHandler(OnQuery358_Click);		
						
				//Button控件事件
			this.OnOK208.Click += new EventHandler(OnOK208_Click);		
						
				//Button控件事件
			this.OnCancel201.Click += new EventHandler(OnCancel201_Click);		
						

		
			//Grid控件的分页事件				
			((UFWebDataGridAdapter)this.DataGrid0).GridMakePageEventHandler += new GridMakePageDelegate(UFGridDataGrid0_GridMakePageEventHandler);
             //Grid控件的客户化筛选，定位事件
            ((UFWebDataGridAdapter)this.DataGrid0).GridCustomFilterHandler += new GridCustomFilterDelegate(UFGridDataGrid0_GridCustomFilterHandler);

            AfterEventBind();
        }
        #endregion            
        
		#region override method
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad2(e);
		}
		protected override void OnLoadDataDo(EventArgs e)
		{
		    adjust.ProcessAdjustBeforeOnLoad(this);
			if (UIEngineHelper.IsDataBind(PageStatus, this))
			{
				if(this.Model==null){				        
					this.Model = new FindPOShipLineUIModelModel();
				}
				OnLoadConsumer(new InParameterModel[]{},new InParameterModel[]{});
				OnLoadData(this);
				this.IsDataBinding = true ; //加载完数据要绑定一次.目前加这.
			}
			else
			{
				//去除.已经移入到OnInit()中.
				//this.Model = (FindPOShipLineUIModelModel)this.CurrentState[this.TaskId.ToString()];
			}
			adjust.ProcessAdjustAfterOnLoadData(this);
		            AfterOnLoad();
            
            adjust.ProcessAdjustAfterOnLoad(this);
		}
		protected override void OnPreRender(EventArgs e)
		{
			base.OnPreRender2(e);
		}
        protected override void OnPreRenderDo(EventArgs e)
        {
            adjust.ProcessAdjustBeforeOnPreRender(this);
			base.OnPreRender(e);
			this.CurrentState[this.TaskId.ToString()] = this.Model;
			RegisterClearWebPartPadding();
            UFIDA.U9.UI.PDHelper.FormAuthorityHelper.SetWebPartAuthorization(this);
            
			if (IsDataBinding) //2006-9-7 可由开发人员控制
			{
				BeforeUIModelBinding();
								if(!Page.IsPostBack)
				{
					EnumTypeBinding.BindEnumControls(this);
				}
				UFIDA.U9.UI.Commands.CommandHelper.BindFlexData(this);
				adjust.ProcessAdjustBeforeDataBinding(this);
				if (this.IsOnlyDataBinding)
				{
					this.DataBinding();
				}
				adjust.ProcessAdjustAfterDataBinding(this);

				AfterUIModelBinding();
			}
			adjust.ProcessAdjustAfterOnPreRender(this);
        }
		protected override void OnInit(EventArgs e)
		{
			base.OnInit2(e);
		}
		protected override void OnInitDo(EventArgs e)
		{			 
			this.Page.InitComplete += new EventHandler(Page_InitComplete);
			WebPartBuilder.InitWebPart(this);
            this.Action = new FindPOShipLineUIModelAction(this);
            adjust = new FormAdjust();
		    CreateFormChildControls();
		}
        void Page_InitComplete(object sender, EventArgs e)
        {

            adjust.ProcessInit(this);
        }
        #endregion

      
        
        #endregion

	
		/// <summary>
        /// WebPart View
        /// </summary>
        #region view Create Contorls
        private void CreateFormChildControls()
        {
            IUFContainer _panel = UIControlBuilder.BuildTopLevelContainer(this,"FindPOShipLineUIForm",true,872,448);
            CommonBuilder.ContainerGridLayoutPropBuilder(_panel, 1, 2, 0, 10, 10, 10, 10, 10);
			InitViewBindingContainer(this, _panel,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_panel, 10,new GridColumnDef[]{new GridColumnDef(851,bool.Parse("False")),},new GridRowDef[]{new GridRowDef(390,bool.Parse("False")),new GridRowDef(25,bool.Parse("True")),});
            //???还有用么?
            topLevelPanel = _panel;    
            
            UIControlBuilder.BuildCommonControls(this,ref updatePanel,ref wpFindID);
            





	
			_BuilderControl_Card0(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card0, "1");		


	
			_BuilderControl_Card1(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card1, "2");		



		
     
			
			
            EventBind();
            AfterCreateChildControls();
            
        }        







	                   
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card0",false,"none", true, true, "1","b0d278a7-7c4c-42a9-825c-b8ee8b98cd06","8c9449e2-3147-4ad3-9447-9b90444a5351");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 851, 390, 0, 0, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 14, 3, 0, 5, 0, 0, 0, 0);
			InitViewBindingContainer(this, _UFCard,  this.Model.QueryPOShipLineView, "QueryPOShipLineView", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(90,bool.Parse("True")),new GridColumnDef(5,bool.Parse("True")),new GridColumnDef(110,bool.Parse("True")),new GridColumnDef(20,bool.Parse("True")),new GridColumnDef(90,bool.Parse("True")),new GridColumnDef(5,bool.Parse("True")),new GridColumnDef(110,bool.Parse("True")),new GridColumnDef(20,bool.Parse("True")),new GridColumnDef(90,bool.Parse("True")),new GridColumnDef(5,bool.Parse("True")),new GridColumnDef(110,bool.Parse("True")),new GridColumnDef(5,bool.Parse("True")),new GridColumnDef(100,bool.Parse("True")),new GridColumnDef(91,bool.Parse("False")),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(340,bool.Parse("False")),});
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





	
			_BuilderControl_DataGrid0(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DataGrid0, "0");		


				this.lblID65 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblID65", "", "False", "True", "Right", 90, 20, 0, 0, 1, 1, "100","b0d278a7-7c4c-42a9-825c-b8ee8b98cd06","e4be9ba5-652a-4510-85e4-c4f114a04ffc");


								

		
			UIControlBuilder.BuilderUFControl(this.lblID65, "1");		


				this.ID65 = UIControlBuilder.BuilderNumberControl(_UFCard, "ID65", "False", "False", "True", "Left", 7, 60, 0, 90, 20, 0, 0, 1, 1, NumbericType.Numberic, "100",79228162514264337593543950335m, -79228162514264337593543950335m
			,TextAlign.Right,0,true,false,true,"lblID65","","b0d278a7-7c4c-42a9-825c-b8ee8b98cd06","e1041bd6-2606-4004-a5a4-84198e25f787",null,null,null, null);
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ID65, "False", "ID", this.Model.QueryPOShipLineView, this.Model.QueryPOShipLineView.FieldID, "QueryPOShipLineView");
	
		
			UIControlBuilder.BuilderUFControl(this.ID65, "2");		
		 

				this.lblSysVersion74 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblSysVersion74", "", "False", "True", "Right", 90, 20, 0, 0, 1, 1, "100","c7e7e1da-61e8-4a86-ab84-fad348e1c2f3","a091198c-0b20-47ff-b6c2-bae2682668b5");


								

		
			UIControlBuilder.BuilderUFControl(this.lblSysVersion74, "3");		


				this.SysVersion74 = UIControlBuilder.BuilderNumberControl(_UFCard, "SysVersion74", "False", "False", "True", "Left", 7, 60, 0, 90, 20, 0, 0, 1, 1, NumbericType.Numberic, "100",79228162514264337593543950335m, -79228162514264337593543950335m
			,TextAlign.Right,0,true,false,true,"lblSysVersion74","","c7e7e1da-61e8-4a86-ab84-fad348e1c2f3","65cb79e8-80c4-47fd-9fff-b0b598a6b3f0",null,null,null, null);
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.SysVersion74, "False", "SysVersion", this.Model.QueryPOShipLineView, this.Model.QueryPOShipLineView.FieldSysVersion, "QueryPOShipLineView");
	
		
			UIControlBuilder.BuilderUFControl(this.SysVersion74, "4");		
		 

				this.lblPO74 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblPO74", "", "True", "True", "Right", 90, 20, 0, 0, 1, 1, "100","97df83af-8ca5-42f6-ac71-4cbddb480c4b","51e4542f-4f45-477d-8b70-7e705c817b95");


								

		
			UIControlBuilder.BuilderUFControl(this.lblPO74, "5");		


				this.PO74 = UIControlBuilder.BuilderRefrenceControl(_UFCard,"PO74",false,true, true,110, 20, 2, 0, 1, 1, "100","6",false,false,true,"lblPO74","97df83af-8ca5-42f6-ac71-4cbddb480c4b","b31749a3-89c9-400e-a8e9-2cef67d05ddf");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.PO74, "False", "PO", this.Model.QueryPOShipLineView, this.Model.QueryPOShipLineView.FieldPO, "QueryPOShipLineView");
			UIControlBuilder.SetReferenceControlRefInfo(this.PO74,"7f064f34-168f-454d-a8b7-c0596b25e268", 580,408, "DocNo","DocNo","ID", this.Model.QueryPOShipLineView.FieldPO_DocNo,this.Model.QueryPOShipLineView.FieldPO_DocNo);
            //foreach Reference's input filter parameter
            //foreach Reference's output set data, columnID锛屽弬鐓ц繑鍥炲垪鐨凢ieldID
			ScriptBuilder.BuildReferenceControlOuputScript(this.PO74,"PO74",new ReferenceOutputParam[]{new ReferenceOutputParam("","ID",""),new ReferenceOutputParam("","DocNo",""),new ReferenceOutputParam("","DocumentType_Name",""),new ReferenceOutputParam("","BusinessDate",""),new ReferenceOutputParam("","Version",""),new ReferenceOutputParam("","CreatedBy",""),new ReferenceOutputParam("","BizType",""),new ReferenceOutputParam("","Status",""),});
				

		
			UIControlBuilder.BuilderUFControl(this.PO74, "6");		
		 

				this.lblSupplier194 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblSupplier194", "", "True", "True", "Right", 90, 20, 4, 0, 1, 1, "100","d39e5e4c-a611-4bb2-a65d-40528b8fc6f9","1d32eb74-2667-43d8-abfc-44d8950d63c9");


								

		
			UIControlBuilder.BuilderUFControl(this.lblSupplier194, "7");		


				this.Supplier194 = UIControlBuilder.BuilderRefrenceControl(_UFCard,"Supplier194",false,true, true,110, 20, 6, 0, 1, 1, "100","8",false,false,true,"lblSupplier194","d39e5e4c-a611-4bb2-a65d-40528b8fc6f9","9aaace0b-c5d7-4272-9ac8-7934c1f03517");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Supplier194, "False", "Supplier", this.Model.QueryPOShipLineView, this.Model.QueryPOShipLineView.FieldSupplier, "QueryPOShipLineView");
			UIControlBuilder.SetReferenceControlRefInfo(this.Supplier194,"ff4eec54-1077-4fc0-bd2b-3071dc9dc428", 580,408, "","","ID", this.Model.QueryPOShipLineView.FieldSupplier_Code,this.Model.QueryPOShipLineView.FieldSupplier_Name);
            //foreach Reference's input filter parameter
            //foreach Reference's output set data, columnID锛屽弬鐓ц繑鍥炲垪鐨凢ieldID
			ScriptBuilder.BuildReferenceControlOuputScript(this.Supplier194,"Supplier194",new ReferenceOutputParam[]{new ReferenceOutputParam("","ID",""),new ReferenceOutputParam("","Code",""),new ReferenceOutputParam("","Name",""),new ReferenceOutputParam("","ShortName",""),new ReferenceOutputParam("","TradeCurrency_ID",""),new ReferenceOutputParam("","TradeCurrency_Code",""),new ReferenceOutputParam("","TradeCurrency_Name",""),new ReferenceOutputParam("","Category_Code",""),new ReferenceOutputParam("","Category_Name",""),new ReferenceOutputParam("","TradeCurrency_PriceRound_Precision",""),new ReferenceOutputParam("","TradeCurrency_PriceRound_RoundType",""),new ReferenceOutputParam("","TradeCurrency_PriceRound_RoundValue",""),new ReferenceOutputParam("","TradeCurrency_MoneyRound_Precision",""),new ReferenceOutputParam("","TradeCurrency_MoneyRound_RoundType",""),new ReferenceOutputParam("","TradeCurrency_MoneyRound_RoundValue",""),});
				

		
			UIControlBuilder.BuilderUFControl(this.Supplier194, "8");		
		 

				this.lblItem151 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblItem151", "", "True", "True", "Right", 90, 20, 8, 0, 1, 1, "100","942e428a-82f8-496b-8752-4b4ad8c43b5b","e1a894ea-7c2f-4b6e-8a75-94ee6e0ae994");


								

		
			UIControlBuilder.BuilderUFControl(this.lblItem151, "9");		


				this.Item151 = UIControlBuilder.BuilderRefrenceControl(_UFCard,"Item151",false,true, true,110, 20, 10, 0, 1, 1, "100","10",false,false,true,"lblItem151","942e428a-82f8-496b-8752-4b4ad8c43b5b","167ec9d6-c34a-40a1-849a-578eb0e4a0f2");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Item151, "False", "Item", this.Model.QueryPOShipLineView, this.Model.QueryPOShipLineView.FieldItem, "QueryPOShipLineView");
			UIControlBuilder.SetReferenceControlRefInfo(this.Item151,"99c5294a-ea84-41ad-85f6-485d6da895a9", 580,408, "Name","Code","ID", this.Model.QueryPOShipLineView.FieldItem_Code,this.Model.QueryPOShipLineView.FieldItem_Name);
            //foreach Reference's input filter parameter
            //foreach Reference's output set data, columnID锛屽弬鐓ц繑鍥炲垪鐨凢ieldID
			ScriptBuilder.BuildReferenceControlOuputScript(this.Item151,"Item151",new ReferenceOutputParam[]{new ReferenceOutputParam("","ID",""),new ReferenceOutputParam("","Code",""),new ReferenceOutputParam("","Name",""),new ReferenceOutputParam("","Description",""),new ReferenceOutputParam("","SPECS",""),new ReferenceOutputParam("","PurchaseUOM_ID",""),new ReferenceOutputParam("","PurchaseUOM_Code",""),new ReferenceOutputParam("","PurchaseUOM_Name",""),new ReferenceOutputParam("","PurchaseUOM_Round_Precision",""),new ReferenceOutputParam("","PurchaseUOM_Round_RoundType",""),new ReferenceOutputParam("","PurchaseUOM_Round_RoundValue",""),});
				

		
			UIControlBuilder.BuilderUFControl(this.Item151, "10");		
		 

				this.OnQuery358 = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnQuery358", true, true, 100, 20, 12, 0, 1, 1, "100","", this.Model.ElementID,"OnQuery",false,"07b56eec-6fe8-4da1-bdaa-9a451b97be2c","07b56eec-6fe8-4da1-bdaa-9a451b97be2c","0d21a44d-8462-4807-b908-c3b593eaa6a1");
	

		
			UIControlBuilder.BuilderUFControl(this.OnQuery358, "17");		


				this.lblPODocNo125 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblPODocNo125", "", "True", "True", "Right", 90, 20, 0, 1, 1, 1, "100","eb012a7f-cca9-496d-b543-6c150fd87d9e","f6961cdf-a865-4389-85ee-bad9bef9174c");


								

		
			UIControlBuilder.BuilderUFControl(this.lblPODocNo125, "18");		


				this.PODocNo125 = UIControlBuilder.BuilderTextBox(_UFCard, "PODocNo125", "False", "True", "True", "False", "Left", 0, 60, 0, 110, 20, 2, 1, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblPODocNo125","","50","eb012a7f-cca9-496d-b543-6c150fd87d9e","53b62fba-0977-4ba0-a9e5-493567e508d8");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.PODocNo125, "False", "PODocNo", this.Model.QueryPOShipLineView, this.Model.QueryPOShipLineView.FieldPODocNo, "QueryPOShipLineView");


		
			UIControlBuilder.BuilderUFControl(this.PODocNo125, "19");		
		 

				this.lblSupplierCode116 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblSupplierCode116", "", "True", "True", "Right", 90, 20, 4, 1, 1, 1, "100","8aed7ce0-6785-4da6-a361-7892bde7a819","facc68aa-0c3f-4228-893b-b232681cda81");


								

		
			UIControlBuilder.BuilderUFControl(this.lblSupplierCode116, "20");		


				this.SupplierCode116 = UIControlBuilder.BuilderTextBox(_UFCard, "SupplierCode116", "False", "True", "True", "False", "Left", 0, 60, 0, 110, 20, 6, 1, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblSupplierCode116","","50","8aed7ce0-6785-4da6-a361-7892bde7a819","37ba6fb6-c99a-4ed5-8f8b-058fcf24acd9");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.SupplierCode116, "False", "SupplierCode", this.Model.QueryPOShipLineView, this.Model.QueryPOShipLineView.FieldSupplierCode, "QueryPOShipLineView");


		
			UIControlBuilder.BuilderUFControl(this.SupplierCode116, "21");		
		 

				this.lblItemCode211 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblItemCode211", "", "True", "True", "Right", 90, 20, 8, 1, 1, 1, "100","84848e71-25ff-4f54-9e52-b68f4a33aba9","073da1bf-2f4b-461e-bf22-b0621fe96132");


								

		
			UIControlBuilder.BuilderUFControl(this.lblItemCode211, "22");		


				this.ItemCode211 = UIControlBuilder.BuilderTextBox(_UFCard, "ItemCode211", "False", "True", "True", "False", "Left", 0, 60, 0, 110, 20, 10, 1, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblItemCode211","","50","84848e71-25ff-4f54-9e52-b68f4a33aba9","e213ec8d-7e82-43ad-ba73-dd02fa1004bc");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ItemCode211, "False", "ItemCode", this.Model.QueryPOShipLineView, this.Model.QueryPOShipLineView.FieldItemCode, "QueryPOShipLineView");


		
			UIControlBuilder.BuilderUFControl(this.ItemCode211, "23");		
		 


							
			this.PO74.IsMultiOrg  = false ;
			this.lblPO74.SetMultiOrgInfo(this.PO74,false);
			
		
			this.Supplier194.IsMultiOrg  = false ;
			this.lblSupplier194.SetMultiOrgInfo(this.Supplier194,false);
			
		
			this.Item151.IsMultiOrg  = false ;
			this.lblItem151.SetMultiOrgInfo(this.Item151,false);
			
							

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

				





       
        private void _BuilderControl_DataGrid0(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid0", UFSoft.UBF.UI.ControlModel.EditStatus.Edit, false, true,true,true,true,true,50,true, false) ;
  			UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "0");
			CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 851, 340, 0, 2, 14, 1, "100");
			InitViewBindingContainer(this, _UFGrid,  this.Model.POShipLineDataView, "POShipLineDataView", "", null, 50, "");
			((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy=UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
			_UFGrid.AllowSelectAllPage=false;
			((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData=false;
		        ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData=false;
            this.DataGrid0 = _UFGrid;
            container.Controls.Add(_UFGrid);



			IUFDataGridColumn column ;
			GridColumn gridColumn ;
	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ID66","NumberColumnModel", "", 0,this.Model.POShipLineDataView.Fields["ID"]/*ID*/,"ID", true, false, true, false, false, false, 7, 100, "",true, false,"","265eccdc-56c0-4a33-81b5-1c20f9f2ddaa","265eccdc-56c0-4a33-81b5-1c20f9f2ddaa","e0f359fc-850d-4776-82e0-4e42ddf5fd6d");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SysVersion75","NumberColumnModel", "", 0,this.Model.POShipLineDataView.Fields["SysVersion"]/*SysVersion*/,"SysVersion", false, false, true, false, false, false, 7, 100, "",true, false,"","b80e58d9-6a9c-4b9f-9c15-af01fb289012","b80e58d9-6a9c-4b9f-9c15-af01fb289012","ad330d52-59e8-4ae0-a972-28112ba72e0e");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"PO_DocNo117","TextBoxColumnModel", "", 0,this.Model.POShipLineDataView.Fields["PO_DocNo"]/*PO_DocNo*/,"PO_DocNo", false, true, true, false, false, false, 0, 130, "50",true, false,"","f885ccc8-d5d8-4f84-bd28-0cee47699fdb","f885ccc8-d5d8-4f84-bd28-0cee47699fdb","c45f7cf3-759f-4fcc-bd31-ae5e1fb4c3c4");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"DocLineNo0","NumberColumnModel", "", 0,this.Model.POShipLineDataView.Fields["DocLineNo"]/*DocLineNo*/,"DocLineNo", false, true, true, false, false, true, 2, 100, "10.0",true, false,"","5dbd7a8b-b562-47c3-9078-307e36a371e5","5dbd7a8b-b562-47c3-9078-307e36a371e5","d8343e0e-7967-4eba-8e14-93d2bd39b3f3");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"DocSubLineNo0","NumberColumnModel", "", 0,this.Model.POShipLineDataView.Fields["DocSubLineNo"]/*DocSubLineNo*/,"DocSubLineNo", false, true, true, false, false, true, 2, 100, "10.0",true, false,"","4e7c1106-f8f5-4671-9367-4b158ceccea1","4e7c1106-f8f5-4671-9367-4b158ceccea1","883f6a52-2de0-4862-85d8-e69182b9f619");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Item_Code99","TextBoxColumnModel", "", 0,this.Model.POShipLineDataView.Fields["Item_Code"]/*Item_Code*/,"Item_Code", false, true, true, false, false, false, 0, 100, "50",true, false,"","1119e1e7-f54b-4be7-a35b-8fa4d336b86f","1119e1e7-f54b-4be7-a35b-8fa4d336b86f","2e76e828-9cba-4554-85d9-2cdc50655e81");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Item_Name0","TextBoxColumnModel", "", 0,this.Model.POShipLineDataView.Fields["Item_Name"]/*Item_Name*/,"Item_Name", false, true, true, false, false, false, 0, 150, "50",true, false,"","c09f1107-d299-404e-ad80-17878c942671","c09f1107-d299-404e-ad80-17878c942671","d1852660-1be7-487c-862f-d663a6f2fa3e");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Supplier_Name0","TextBoxColumnModel", "", 0,this.Model.POShipLineDataView.Fields["Supplier_Name"]/*Supplier_Name*/,"Supplier_Name", false, true, true, false, false, false, 0, 120, "50",true, false,"","31108709-11eb-4035-b582-9fda6a82ef5c","31108709-11eb-4035-b582-9fda6a82ef5c","a336813c-8cd4-4379-b420-57348233c404");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Qty0","NumberColumnModel", "", 2,this.Model.POShipLineDataView.Fields["Qty"]/*Qty*/,"Qty", false, true, true, false, false, false, 8, 100, "18.0",true, false,"0","cd75101f-a1b5-4d69-a96d-414d7770223a","cd75101f-a1b5-4d69-a96d-414d7770223a","50df2752-cf4d-4265-8d00-37f21ea9a349");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Price0","NumberColumnModel", "", 2,this.Model.POShipLineDataView.Fields["Price"]/*Price*/,"Price", false, true, true, false, false, false, 8, 100, "18.0",true, false,"0","6041c01f-94d4-4a9d-adc6-a51626fab95e","6041c01f-94d4-4a9d-adc6-a51626fab95e","c3ada481-f5ee-41d1-a8eb-31341f80fe55");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"POShipLine0","NumberColumnModel", "", 0,this.Model.POShipLineDataView.Fields["POShipLine"]/*POShipLine*/,"POShipLine", false, false, true, false, false, true, 7, 100, "19.0",true, false,"","e2bb7330-5b9b-40dc-8b90-aec41deaf5de","e2bb7330-5b9b-40dc-8b90-aec41deaf5de","d26b3d2e-ad0b-4455-9891-f74d141fc4d6");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 
        }

				

				

				

	                   
        private IUFCard _BuilderControl_Card1(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card1",false,"FunctionBar", true, true, "2","","758e3a16-0188-4c12-95de-62b354832b46");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 851, 25, 0, 1, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 17, 1, 0, 0, 0, 0, 10, 0);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 0,new GridColumnDef[]{new GridColumnDef(80,bool.Parse("True")),new GridColumnDef(10,bool.Parse("True")),new GridColumnDef(80,bool.Parse("True")),new GridColumnDef(10,bool.Parse("True")),new GridColumnDef(80,bool.Parse("True")),new GridColumnDef(60,bool.Parse("True")),new GridColumnDef(80,bool.Parse("True")),new GridColumnDef(30,bool.Parse("True")),new GridColumnDef(80,bool.Parse("True")),new GridColumnDef(10,bool.Parse("True")),new GridColumnDef(80,bool.Parse("True")),new GridColumnDef(10,bool.Parse("True")),new GridColumnDef(53,bool.Parse("True")),new GridColumnDef(80,bool.Parse("True")),new GridColumnDef(10,bool.Parse("True")),new GridColumnDef(80,bool.Parse("True")),new GridColumnDef(1,bool.Parse("False")),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),});
            this.Card1 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





				this.OnOK208 = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnOK208", true, true, 80, 20, 13, 0, 1, 1, "100","", this.Model.ElementID,"OnOK",false,"afd94164-bd22-4d13-aaa6-7ce507bd5644","afd94164-bd22-4d13-aaa6-7ce507bd5644","6b6366ce-a427-4889-8a2a-1cb939f60e12");
	

		
			UIControlBuilder.BuilderUFControl(this.OnOK208, "0");		


				this.OnCancel201 = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnCancel201", true, true, 80, 20, 15, 0, 1, 1, "100","", this.Model.ElementID,"OnCancel",false,"90864c3c-8c62-4233-8264-6861a1c444e4","90864c3c-8c62-4233-8264-6861a1c444e4","9875555a-4a39-4f0a-96f4-d41f2929d304");
	

		
			UIControlBuilder.BuilderUFControl(this.OnCancel201, "1");		


				this.Label212 = UIControlBuilder.BuilderUFLabel(_UFCard, "Label212", "", "True", "True", "Right", 170, 20, 0, 0, 3, 1, "100","","6bcb4f39-917b-46bc-baef-d10f9fe64048");


								

		
			UIControlBuilder.BuilderUFControl(this.Label212, "2");		


				this.TextBox213 = UIControlBuilder.BuilderTextBox(_UFCard, "TextBox213", "True", "True", "True", "False", "Left", 0, 60, 0, 220, 20, 4, 0, 3, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"","","","","f21cda7a-d90d-4889-a5c9-57ed01aa5cf0");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.TextBox213, "False", "", null, null, "");


		
			UIControlBuilder.BuilderUFControl(this.TextBox213, "3");		
		 


				

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }





		#endregion
		

	}
}
